package com.tarena.lbs.common.enums;

import com.tarena.lbs.base.protocol.enums.ErrorCodeSupport;
import lombok.Getter;

@Getter
public enum BusinessResultEnum implements ErrorCodeSupport {
    USER_NOT_LOGIN("10001","用户未登录"),
    USER_ROLE_NOT_MATCH("10002","用户角色不匹配"),
    BUSINESS_NAME_EXISTS("10003","商家名称已存在" ),
    BUSINESS_NOT_EXISTS("10004", "商家不存在"),
    STORE_NOT_EXISTS("10005", "门店不存在");

    BusinessResultEnum (String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code;
    private String message;

    @Override
    public String getCode() {
        return  code;
    }

    @Override
    public String getMessage() {
        return  message;
    }
}
